export default [
  // {
  //   path: '/user',
  //   layout: false,
  //   routes: [
  //     { path: '/user', routes: [{ name: '登录', path: '/user/login', component: './user/Login' }] },
  //     { component: './404' },
  //   ],
  // },
  { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
  { 
    path: '/hello',
    name: 'hello',
    icon: 'smile',
    routes: [
      { path: 'hello', name: 'hello', component: './hello' },
    ]
  },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    component: './Admin',
    routes: [
      { path: '/admin/sub-page', name: '二级管理页', icon: 'smile', component: './Welcome' },
      { component: './404' },
    ],
  },
  { path: '/', redirect: '/welcome' },
  { component: './404' },
];
